<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich">
	<body>
		<ui:component id="listAllWorks">
			<rich:scrollableDataTable height="150px" width="500px" id="clientsTable" var="work" value="#{works}" selection="#{worksManager.workSelection}">
				<rich:column id="role">
					<f:facet name="header">
						<h:outputText styleClass="headerText" value="Atuação" />
					</f:facet>
					<h:outputText value="#{work.roleName}" />
				</rich:column>
				<rich:column id="name">
					<f:facet name="header">
						<h:outputText styleClass="headerText" value="Nome" />
					</f:facet>
					<h:outputText value="#{work.clientName}" />
				</rich:column>
				<rich:column id="aka">
					<f:facet name="header">
						<h:outputText styleClass="headerText" value="Apelido" />
					</f:facet>
					<h:outputText value="#{work.clientAka}" />
				</rich:column>
				<rich:column id="email">
					<f:facet name="header">
						<h:outputText styleClass="headerText" value="e-Mail" />
					</f:facet>
					<h:outputText value="#{work.clientEmail}" />
				</rich:column>
				<rich:column id="federalId">
					<f:facet name="header">
						<h:outputText styleClass="headerText" value="CNPJ/CPF" />
					</f:facet>
					<h:outputText value="#{work.clientFederalId}" />
				</rich:column>
				</rich:scrollableDataTable>
		</ui:component>
	</body>
</html>
